divPath = '//*[@id="ibu-hotel-detail-head"]/div[2]/div[1]/div/div[1]/div[1]'
imgPath = divPath + '/img'

function getElementByXpath(xpath) {
  return document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}

function deleteElement(xpath) {
  const target = getElementByXpath(xpath);
  if (target) {
    const parent = target.parentNode;
    parent.removeChild(target);
  }
}

div = getElementByXpath(divPath)
img = getElementByXpath(imgPath)
div.removeChild(img)

video = document.createElement('video')
video.class = 'detail-headalbum_bigpicImg'
video.src = './video.mp4'
div.appendChild(video)
